package 
{
	import laya.d3.core.scene.Scene;
	import laya.d3.math.Vector3;
	import laya.d3.core.MeshSprite3D;
	import laya.d3.resource.models.QuadMesh;
	import laya.d3.resource.models.BoxMesh;
	import laya.d3.core.material.StandardMaterial;
	import laya.d3.resource.Texture2D;

	/**
	 * ...
	 * @author
	 */
	public class GameScene extends Scene{
		private var floorMesh:BoxMesh;
		public function GameScene(){
			init();
		}

		private function init():void
		{
			floorMesh = new BoxMesh(1000,1000,0);
			var floor:MeshSprite3D=new MeshSprite3D(floorMesh);
			//floor.transform.rotate(new Vector3(-90,0,0),true,false);
			this.addChild(floor);
			// var material:StandardMaterial = new StandardMaterial();
            // //材质的漫反射贴图
            // material.diffuseTexture = Texture2D.load("res/3Dcommon/write.png");
            // //为模型赋上材质
            // floor.meshRender.material = material;
		}
	}

}